package com.g.ocache;

import java.util.List;

/**
 * 
 * @author Jingqi Xu
 */
public interface CacheManager<K, V> {
	
	void clear(boolean stop);
	
	List<Cache<K, V>> getAllCaches();
	
	Cache<K, V> getCache(Object name) throws Exception;
	
	Cache<K, V> getCache(Object name, Cache.Factory<K, V> factory) throws Exception;
}
